Ext.define('DCApp.view.lemma.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.lemmalist',
    
    requires: [
        'DCApp.controller.ListController',
        'DCApp.view.lemma.ListModel',
        'DCApp.view.GridFilters'
    ],

    controller: 'list',
    plugins: ['gfilters'],
    viewModel: {
        type: 'lemmalist'
    },
    bind: {
        store: '{objs}'
    },
    header:false,

    selType: 'checkboxmodel',
    
    tbar: ['->',{
        text: '录入',
        handler: 'onNew'
    }],
    
	
	listeners: {
        itemdblclick: 'onDblClick'
    },
    
    columns: [
            {
                text     : '编号',
                dataIndex: 'id',
                filter: 'number'
            },
            {
                text     : '词条名称',
                dataIndex: 'lemmaName',
                filter: 'string'
            },
            {
                text     : '是否删除(Y/N)',
                dataIndex: 'isdel',
                filter: 'number'
            },
            {
                text     : '词条撰稿人',
                dataIndex: 'descriptionAuthor',
                filter: 'string'
            },
            {
                text     : '词条字数',
                dataIndex: 'lemmaNum',
                filter: 'number'
            },
            {
                text     : '词条语种',
                dataIndex: 'language',
                filter: 'string'
            },
            {
                text     : '操作员',
                dataIndex: 'oper',
                filter: 'string'
            },
            {
                text     : '翻译稿标志位',
                dataIndex: 'transFlag',
                filter: 'number'
            }
        ],
    initComponent: function(){
    	this.callParent();
    }
 });
